﻿using RpcModularModel.Resource;
using RpcHelper.Validate;
namespace Wedonek.RpcStore.Service.Model
{
        public class ModularQueryParam
        {
                /// <summary>
                /// 集群Id
                /// </summary>
                [NumValidate("rpc.mer.id.error",1)]
                public long RpcMerId { get; set; }
                /// <summary>
                /// 系统组Id
                /// </summary>
                public long? SysGroupId { get; set; }
                /// <summary>
                /// 模块名
                /// </summary>
                [LenValidate ("rpc.modular.name.len", 0,50)]
                public string ModularName { get; set; }
                /// <summary>
                /// 资源类型
                /// </summary>
                [EnumValidate ("rpc.resource.type.error",typeof(ResourceType))]
                public ResourceType? ResourceType { get; set; }
        }
}
